﻿//////////////////////////////////////////////////////////////////////////////////////
///// GameConstants.cs                                           /////
///// static 변수 및 함수                                            /////
//////////////////////////////////////////////////////////////////////////////////////
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;

namespace Pyramid_Game
{
    public static class GameConstants
    {
        #region Declarations
        
        public enum GameStates
        {
            BEGIN,
            LOAD,
            MINIGAME,
            FORK,
            TURN,
            BADEND,
            END,
            MOVE
        }
        public enum GameStages
        {
            STAGE01,
            STAGE02,
            STAGE03
        }
        public enum MiniGames
        {
            CATCHMUMMY,
            MAKEPLYGON,
            TURNINGPASSWORD,
            FINDOFROOM,
            FLYBAT,
            THROWPICK,
            STEPSTONE,
            XPUZZLE
        }

        public static GameStates GameState = GameStates.BEGIN;
        public static GameStages GameStage = GameStages.STAGE01;
        public static MiniGames miniGames = MiniGames.CATCHMUMMY;

        //로딩시
        public static bool IsLoading = false;
        //스테이지
        public static int stage = 3;

        #endregion

        #region Methods

        //처음으로 초기화
        public static void Initialize()
        {
            stage = 1;
            Map.playerPoint = 0;
            Map.LoadMap();
        }
        //다음 스테이지
        public static void NextStage()
        {
            stage++;
            Map.playerPoint = 0;
            Map.LoadMap();
        }

        #endregion
    }
}
